#ifndef GAMEWINDOW_H
#define GAMEWINDOW_H

#include <QWidget>
#include <QPushButton>
#include "GamePage.h"
#include <QStackedWidget>

class GameWindow : public QWidget {
    Q_OBJECT
public:
    explicit GameWindow(QWidget *parent = nullptr);
    ~GameWindow();
private slots:
    void onStartGameClicked();
    void onNewGameClicked();    // 点击新游戏
    void onExitGameClicked();   // 退出游戏

private:

    QPushButton *startButton;
    QPushButton *aboutButton;
    QPushButton *helpButton;
    QPushButton *newGameButton;
    QPushButton *exitButton;
     GamePage *gamePage;
    QStackedWidget *stackedWidget;  // 切换页面的控件



};

#endif // GAMEWINDOW_H
